eventcontroller: Remove some unnecessary casts
authorTimm Bäder <mail@baedert.org>
Wed, 29 Apr 2020 06:11:07 +0000 (08:11 +0200)
committerTimm Bäder <mail@baedert.org>
Tue, 5 May 2020 06:20:10 +0000 (08:20 +0200)
commit771b3ea6f31d7689b15bdb3da7937b981bff02f0
tree887131edbaa3e25e4846c367c2a6b3d1cccfe8aa
parent75e202f02b8ad2ed546b12984197649373f62c28
eventcontroller: Remove some unnecessary casts

Instead of comparing two GtkWidget*s by casting the two GtkNative*s, we
can as well compare two GtkNative*s. Also if gtk_widget_get_native()
returns NULL, the code previously failed.
gtk/gtkeventcontroller.c